<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
    <link rel="stylesheet" href="./swb/css/swb.css" />
    <style>
      #live2d-widget {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }
      #live2dcanvas {
        border: 0 !important;
      }
      #kbn {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }
      .kbn-dhk {
        background-color: #f0e7d6;
        border: 1px solid #e6d4c1;
        border-radius: 10px;
        line-height: 50px;
        text-align: center;
        margin: 38px 0 0 10px;
      }
    </style>
  </head>
  <body>
    <div sty="wi200 hi400" id="kbn" class="pa">
      <p class="kbn-dhk" style="display: none;">你好呀，我叫小雪</p>
    </div>
  </body>
  <script src="./swb/js/jquery.js"></script>
  <script src="./swb/js/swb.js"></script>
   <script src="./cc.js"></script>
    <script src="./dd.js"></script>
  <script type="text/javascript">
    L2Dwidget.init({
      display: {
        superSample: 2,
        width: 200,
        height: 400,
        position: "right",
        hOffset: 0,
        vOffset: 0
      }
    });
  </script>
  <script>
    setTimeout(function() {
      let num = [
        "",
        "你好呀，我叫小雪~",
        "这次项目真的是把我搞得头都大了",
        "但是我不想放弃~",
        "我一定可以完成的~",
        "毕竟有师文博在~",
        "我可不能让他小瞧我,哼哼~"
      ];
      index = 0;
      $("#kbn").on("mouseover", function() {
        index++, (index = index % num.length);
        // console.log(index)
        if (index == 0) {
          $("#kbn .kbn-dhk").hide();
        } else {
          $("#kbn .kbn-dhk").text(num[index]);
          $("#kbn .kbn-dhk").show();
          // console.log("show")
        }
      });
    }, 1000);
  </script>
</html>